import Vue from 'vue'
import TextScroll from '@/components/TextScroll'

import {
  Swiper,
  SwiperItem,
  Card,
  XImg,
  AlertPlugin,
  Confirm,
  Group,
  XInput,
  ToastPlugin
} from 'vux'

const components = [
  Swiper,
  SwiperItem,
  Card,
  XImg,
  TextScroll,
  Confirm,
  Group,
  XInput
];

components.forEach(component => {
  Vue.component(component.name, component);
});

Vue.use(AlertPlugin)
Vue.use(ToastPlugin, {position: 'top'})
